#ifndef __BUTTON_DRIVER_H__
#define __BUTTON_DRIVER_H__
#include "stdio.h"
#include "stdlib.h"
#include "stdbool.h"
#include "stdint.h"
#define LONG_PRESS_TIME 20
void Button_Init(void);
typedef enum
{
	BTN_NONE=0,
  BTN_UP,
	BTN_ENTER,
	BTN_DOWN,
}Button;

typedef enum
{
  BTN_RELEASE=0,
	BTN_PRESS,
	
	BTN_LONG_PRESS,
	BTN_LONG_RELEASE,
	
	BTN_DOUBLE_RELEASE,
	BTN_DOUBLE_PRESS,
	

}Button_status;


typedef struct
{
   Button btn;
	 Button_status status;
	 uint8_t  times;
	 bool    is_press; 


}Button_t;


Button_t Get_Btn_Result();


void Button_Protol_Analysic(Button_t *btn);








#endif